package cn.iocoder.yudao.module.biz.controller.admin.pay.mapper;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.module.biz.controller.admin.pay.domain.SanBizPaymentManagement;
import cn.iocoder.yudao.module.biz.controller.admin.receivables.domain.SanBizContractArchiveReceiveRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 王兴鹏
* @description 针对表【san_biz_payment_management(收款管理表)】的数据库操作Mapper
* @createDate 2025-08-16 11:54:58
* @Entity cn.iocoder.yudao.module.biz.controller.admin.pay.domain.SanBizPaymentManagement
*/
@Mapper
public interface SanBizPaymentManagementMapper extends BaseMapper<SanBizPaymentManagement> {
    List<SanBizPaymentManagement> getBizPaymentManagementPage(SanBizPaymentManagement pageReqVO);

    long getCount(SanBizPaymentManagement pageReqVO);

    SanBizContractArchiveReceiveRecord getContractArchiveReceiveRecord(SanBizPaymentManagement user);

//    default PageResult<SanBizPaymentManagement> selectPage(SanBizPaymentManagement reqVO) {
//        return selectPage(reqVO, new LambdaQueryWrapperX<SanBizPaymentManagement>()
//                .likeIfPresent(SanBizPaymentManagement::getName, reqVO.getName())
//                .eqIfPresent(SanBizPaymentManagement::getType, reqVO.getType())
//                .eqIfPresent(SanBizPaymentManagement::getCustomerId, reqVO.getCustomerId())
//                .likeIfPresent(SanBizPaymentManagement::getCustomerName, reqVO.getCustomerName())
//                .eqIfPresent(SanBizPaymentManagement::getContractId, reqVO.getContractId())
//                .likeIfPresent(SanBizPaymentManagement::getContractName, reqVO.getContractName())
//                .eqIfPresent(SanBizPaymentManagement::getContractCode, reqVO.getContractCode())
//                .eqIfPresent(SanBizPaymentManagement::getPeriods, reqVO.getPeriods())
//                .eqIfPresent(SanBizPaymentManagement::getServiceTeamId, reqVO.getServiceTeamId())
//                .likeIfPresent(SanBizPaymentManagement::getServiceTeamName, reqVO.getServiceTeamName())
//                .eqIfPresent(SanBizPaymentManagement::getDeptId, reqVO.getDeptId())
//                .eqIfPresent(SanBizPaymentManagement::getLayerOrder, reqVO.getLayerOrder())
//                .eqIfPresent(SanBizPaymentManagement::getPayMoney, reqVO.getPayMoney())
//                .eqIfPresent(SanBizPaymentManagement::getMacthMoney, reqVO.getMacthMoney())
////                .betweenIfPresent(SanBizPaymentManagement::getPayDate, reqVO.getPayDate())
//                .eqIfPresent(SanBizPaymentManagement::getCoexecutor, reqVO.getCoexecutor())
//                .eqIfPresent(SanBizPaymentManagement::getContent, reqVO.getContent())
//                .eqIfPresent(SanBizPaymentManagement::getRemarks, reqVO.getRemarks())
//                .likeIfPresent(SanBizPaymentManagement::getBankName, reqVO.getBankName())
//                .eqIfPresent(SanBizPaymentManagement::getVersionNum, reqVO.getVersionNum())
//                .eqIfPresent(SanBizPaymentManagement::getStatus, reqVO.getStatus())
//                .eqIfPresent(SanBizPaymentManagement::getRecorderId, reqVO.getRecorderId())
//                .likeIfPresent(SanBizPaymentManagement::getRecorderName, reqVO.getRecorderName())
////                .betweenIfPresent(SanBizPaymentManagement::getRecordDate, reqVO.getRecordDate())
//                .eqIfPresent(SanBizPaymentManagement::getInvoiceCodes, reqVO.getInvoiceCodes())
//                .eqIfPresent(SanBizPaymentManagement::getPayDateImp, reqVO.getPayDateImp())
//                .eqIfPresent(SanBizPaymentManagement::getOrderNo, reqVO.getOrderNo())
////                .betweenIfPresent(SanBizPaymentManagement::getEffectDate, reqVO.getEffectDate())
//                .eqIfPresent(SanBizPaymentManagement::getTotalMoney, reqVO.getTotalMoney())
//                .eqIfPresent(SanBizPaymentManagement::getReceivedMoney, reqVO.getReceivedMoney())
//                .eqIfPresent(SanBizPaymentManagement::getThisMacthMoney, reqVO.getThisMacthMoney())
//                .eqIfPresent(SanBizPaymentManagement::getNeedPay, reqVO.getNeedPay())
//                .eqIfPresent(SanBizPaymentManagement::getMacthInfo, reqVO.getMacthInfo())
////                .betweenIfPresent(SanBizPaymentManagement::getServiceDate, reqVO.getServiceDate())
//                .orderByDesc(SanBizPaymentManagement::getId));
//    }
}




